home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / boot / decprom / RCS / fsIndex.h,v < prev    next >
Encoding:
Text File  |  1990-02-17  |  1.2 KB  |  65 lines

  1. head     1.1;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.1
  10. date     90.02.16.16.14.25;  author shirriff;  state Exp;
  11. branches ;
  12. next     ;
  13.  
  14.  
  15. desc
  16. @@
  17.  
  18.  
  19.  
  20. 1.1
  21. log
  22. @Initial revision
  23. @
  24. text
  25. @/*
  26.  * fsIndex.h --
  27.  *
  28.  *    Definitions to allow moving through indirect blocks.
  29.  *
  30.  * Copyright (C) 1985 Regents of the University of California
  31.  * All rights reserved.
  32.  *
  33.  *
  34.  * $Header: fsIndex.h,v 1.3 87/05/08 17:48:40 brent Exp $ SPRITE (Berkeley)
  35.  */
  36.  
  37. #ifndef _FSINDEX
  38. #define _FSINDEX
  39.  
  40. /*
  41.  * Index type constants.
  42.  */
  43. #ifndef FS_INDIRECT
  44. #define    FS_INDIRECT    0
  45. #define    FS_DBL_INDIRECT    1
  46. #define    FS_DIRECT    2
  47. #endif
  48.  
  49. typedef struct BlockIndexInfo {
  50.     int         indexType;        /* Whether chasing direct, indirect,
  51.                        or doubly indirect blocks. */
  52.     int         blockNum;        /* Block that is being read, written,
  53.                        or allocated. */
  54.     int         *blockAddrPtr;        /* Pointer to block pointer. */
  55.     int         firstIndex;        /* An index into either the direct
  56.                        block pointers or into an 
  57.                        indirect block. */
  58.     int         secondIndex;        /* An index into a doubly indirect
  59.                        block. */
  60.     Boolean      firstBlockNil;        /* The first block is empty. */
  61. } BlockIndexInfo;
  62.  
  63. #endif _FSINDEX
  64. @
  65.